import { CheckEntry } from "./CheckEntry";

export async function processAfterCheck(checkEntry: CheckEntry) {
    // 按规则和文件两个维度归类issue
    const { issuesMapByChecker, issuesMapByFile } = checkEntry.sortIssues();
    // 代码修复
    checkEntry.codeFix();
    // 发送消息
    await checkEntry.message?.sendResult(issuesMapByFile, checkEntry.projectConfig.reportDir);
}